//
//  HMProfileViewController.swift
//  Weibo
//
//  Created by 李学林 on 15/12/5.
//  Copyright © 2015年 tete. All rights reserved.
//

import UIKit

class HMProfileViewController: HMVisitorController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !userLogin {
            visitorView?.setVisitorInfo("visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
            return
        }
        
        setupUI()
        
    }

    private func setupUI(){
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "添加好友", target: self, action: "setting")
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "设置", target: self, action: "setting")
        
        tabBarItem.badgeValue = "13"
    }
    
    @objc private func setting(){
        printLog("discoverGroup")
        
        let vc = HMTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }



}
